export function changeimgtolocalpath(
    tmpcontainer: HTMLElement,
    baseurl: string
) {
    Array.from(tmpcontainer.querySelectorAll("img")).forEach((img) => {
        const src = img.src;
        if (src.startsWith(baseurl)) {
            img.setAttribute("src", "~/" + src.slice(baseurl.length));
        }
    });
}
